home *** CD-ROM | disk | FTP | other *** search
/ Beginning Mac Programming / Beginning Mac Programming.bin / Open Me for REALbasic 3 / REALbasic 3.2 / Example Projects / Reusable Classes_Code / User Interface / SetTimeCanvas1.1.2 / About setTimeCanvas 1.1.2 next >
Text File  |  1999-09-19  |  2KB  |  36 lines

  1. setTimeCanvas 1.1.2
  2. September 19, 1999
  3. ©1999 Michael Rosander
  4.  
  5. setTimeCanvas is a custom class that can be used for user input of time.
  6.  
  7. setTimeCanvas is free to use in any of your projects.
  8. The only thing I ask is that you give credit to me in your apps about box
  9. or documentation if you use it.
  10.  
  11. In the new event "setClock" you can set the initial conditions for the control, eg.
  12. me.show24 as boolean  true: 24 hours, false: 12 hours
  13. me.show12 as boolean  true: 12 (or 24) will be shown, false: jumps from 11 to 00 (23 to 00)
  14.  
  15. me.cHour as integer      set initial hour       (or get hour)
  16. me.cMinute as integer   set initial minute   (or get minute)
  17. me.cSecond as integer   set initial seconds (or get second)
  18. me.isPM as boolean       (if show24=false) true: PM, false: AM
  19.  
  20. me.theFont as string     set the text font, eg. "Charcoal"
  21. me.isBold as boolean     set to true if the font should be bold
  22.  
  23. v1.1.2 (September 19, 1999)
  24. - no changes to the class, but added code that show how to use arrow keys to change
  25.    selection and increase/decrease (as suggested by HIG)
  26. v.1.1.1 (September 15, 1999)
  27. - [Bug fix]: if changing to "show 00:00" from "show 12:00" when the hour is 00 no longer result in strange hours... (stupid bug introduced with 1.1)
  28. v1.1 (September 14, 1999)
  29. - You can now use any font and the size of the control (and selection areas) will adjust itself 
  30. - you can set the font to bold
  31. - [BUG fix]: the transition is now correct from 11 -> 00 or 12 (23 -> 00 or 24)
  32. v1.0
  33. - first release...
  34. __________________________
  35. michael.rosander@home.se
  36. http://www.liu.se/ipp/rb/rb.html